﻿using System.Collections.Generic;
using Xms.Abp.Data;

namespace IdentityManagement
{
    public class OrganizationUnitTreeResult: OrganizationUnitResult, ITree<OrganizationUnitTreeResult>
    {
        public List<OrganizationUnitTreeResult> Children { get; set; }

        public OrganizationUnitTreeResult Clone()
        {
            return new()
            {
                Children = Children == null ? null : new(Children),
                Code = Code,
                ConcurrencyStamp = ConcurrencyStamp,
                CreationTime = CreationTime,
                CreatorId = CreatorId,
                DisplayName = DisplayName,
                ExtraProperties = ExtraProperties,
                Id = Id,
                LastModificationTime = LastModificationTime,
                LastModifierId = LastModifierId,
                No = No,
                ParentId = ParentId,
                TenantId = TenantId,
                Type = Type,
            };
        }
    }
}
